<?php
/**
 * Created by PhpStorm.
 * User: kang
 * Date: 16/2/24
 * Time: 15:31
 */
return array(
    //登录接口
    'user/login' => array(
        'username'  =>  array(
            'min_length'=>  3
        ),
        'passwd'   =>  array(
            'min_length'=>  6,
            'max_length'=>  20,
        )
    ),
    //添加角色
    'auth/role_add' =>  array(
        'name'  =>  array(
            'not_empty' =>  null
        ),
        'node'  =>  array(
            'not_empty' =>  null
        )
    ),
    //删除角色
    'auth/role_delete'  =>  array(
        'role'  =>  array(
            'isNumeric' =>  null
        )
    ),
    //角色权限修改
    'auth/update_role_node' => array(
        'role'  =>  array(
            'isNumeric' =>  null
        ),
        'node'  =>  array(
            'not_empty' =>  null
        )
    ),
    //新增节点
    'auth/node_add' =>  array(
        'path'  =>  array(
            'not_empty' =>  null
        ),
        'name'  =>  array(
            'not_empty' =>  null
        ),
        'pid'   =>  array(
            'isNumeric' =>  null
        )
    )

);